﻿<WindowView 
    x:Class="Poet.Views.AboutView"
    Icon="/Poet;component/App.ico"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    WindowStartupLocation="CenterOwner"   
    Title="{Localizing AboutView}"
    ResizeMode="NoResize"
    MouseMove="DragMove"  
    Height="413" 
    Width="558">

    <WindowView.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="..\Resources\XamlStore.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </WindowView.Resources>

    <WindowView.InputBindings>
        <KeyBinding Key="Escape" Command="ApplicationCommands.Close"/>
    </WindowView.InputBindings>

    <StackPanel>
        
        <Grid>
            <Image Source="/Poet;component/Resources/Pen.jpg"/>
            <TextBlock 
                FontFamily="Vladimir Script"

                FontSize="48"
                Foreground="{StaticResource TitleTextBrush}"
                Text="Poet..." 
                Margin="0,0,8,0"

                HorizontalAlignment="Right" 
                VerticalAlignment="Bottom">
                <TextBlock.RenderTransform>
                    <RotateTransform Angle="-0" CenterX="40" CenterY="20"/>
                </TextBlock.RenderTransform>
            </TextBlock>

            <Grid HorizontalAlignment="Right" Margin="8 2 8 2">

                <Grid.Resources>
                            <Style x:Key="{x:Type TextBlock}" TargetType="TextBlock">
                                <Setter Property="Margin" Value="2"/>
                                <Setter Property="FontStyle" Value="Italic"/>
                                <Setter Property="FontWeight" Value="Light"/>
                        <Setter Property="Foreground" Value="LightSlateGray"/>
                            </Style>
                </Grid.Resources>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>

                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>


                <TextBlock Grid.Column="0" Grid.Row="1" Text="{Localizing Version, StringFormat='\{0}:'}"/>
                <TextBlock Grid.Column="1" Grid.Row="1" Text="{Binding Version}"/>
                <TextBlock Grid.Column="0" Grid.Row="2" Text="{Localizing BuildDateTime, StringFormat='\{0}:'}"/>
                <TextBlock Grid.Column="1" Grid.Row="2" Text="{Binding BuildDateTime}"/>
                <TextBlock Grid.Column="0" Grid.Row="3" Text="{Localizing BuildPlace, StringFormat='\{0}:'}"/>
                <TextBlock Grid.Column="1" Grid.Row="3" Text="{Binding BuildPlace}"/>


            </Grid>
        </Grid>

        <Grid VerticalAlignment="Bottom">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBlock Margin="8" FontWeight="Light" FontStyle="Italic" Text="{Localizing CopyrightMessage, StringFormat='P.S. {0}'}" Foreground="LightSlateGray" VerticalAlignment="Bottom"/>
            <Button Grid.Column="1" Margin="8" Padding="1" Width="100" HorizontalAlignment="Right" Content="{Localizing Hide}" Command="ApplicationCommands.Close"/>  
        </Grid>

    </StackPanel>

</WindowView>
